package com.linghu.influx.entity;

import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Instant;

/**
 * @author 令狐荣豪
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Measurement(name = "tempeature")
public class DemoPOJO {
    @Column(tag = true)
    private String location;

    @Column
    private Double value;

    @Column(timestamp = true)
    private Instant timestamp;


}
